<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>

        function onerror() {
            debugger;
        }

    </script>
</head>
<body>
<iframe width="500px" height="500px" src="http://60.205.95.33/v2/user/info/get/?_=1498542833004&account_id=1&uid=2">
</iframe>

<!--<img src="http://60.205.95.33/v2/user/info/get/?_=1498542833004&account_id=1&uid=2" onload="alert(1)" onerror="alert("+document.cookie+")" />-->
<script src="http://60.205.95.33/v2/user/info/get/?_=1498542833004&account_id=1&uid=2"></script>


<script>

    $.ajaxSetup({
        url: "/xmlhttp/",
        global: false,
        type: "POST"
    });
    $.ajax({data: myData});


    $(document).ajaxComplete(function (event, jqXHR, options) {
        if (jqXHR.status == 402) {
            if (location.pathname != "/user/login") {
                alert(_(JSON.parse(jqXHR.responseText).message));
            }
        }
//判断如果是session失效并且在非登录页面，则跳转到登录页面
        if (jqXHR.responseJSON && jqXHR.responseJSON.state == 401 && location.pathname != "/user/login") {
            window.location.href = "/user/login";
        }
    });

    //设置AJAX的全局默认选项
    $.ajaxSetup({
        timeout: G_AJAX_TIMEOUT //默认超时时间
    });


</script>
</body>
</html>